<template>
  嵌套消息：{{ toy }}
  <button @click="emitter.emit('send-toy', toy)">mitt</button>
  <hr />
  <mittChild></mittChild>
</template>
<script setup lang="ts">
import emitter from "@/utils/emitter";
import { ref } from "vue";
import mittChild from "@/components/sub/mitt-child.vue";
let toy = ref("toy fu");
</script>
<style lang="scss" scoped></style>
